package coffeerush.organizer.mail;

import javax.mail.*;
/**
 *
 * @author Ryzhko Oleg
 */
public class UserMailAuthenticator extends Authenticator {
    
    private String user;
    private String password;
    
    public UserMailAuthenticator(String user, String password) {
        this.user = user;
        this.password = password;
    }
    
    @Override
    public PasswordAuthentication getPasswordAuthentication(){
        return new PasswordAuthentication(this.user, this.password);
    }
}
